package com.djl.mymall.mbg.mapper;

import com.djl.mymall.mbg.entity.Admin;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.djl.mymall.mbg.entity.Permission;

import java.util.List;

/**
 * <p>
 * 后台用户表 Mapper 接口
 * </p>
 *
 * @author djl
 * @since 2022-01-06
 */
public interface AdminMapper extends BaseMapper<Admin> {

    /**
     * 根据用户名获取后台管理员
     */
    Admin getAdminByUsername(String username);

    /**
     * 注册功能
     */
    Admin register(Admin umsAdminParam);

    /**
     * 根据id获取getPermissionList
     * @param adminId
     * @return
     */
}
